﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001467 RID: 5223
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TreasureDungeonAvatar : IMessage<TreasureDungeonAvatar>, IMessage, IEquatable<TreasureDungeonAvatar>, IDeepCloneable<TreasureDungeonAvatar>, IBufferMessage
	{
		// Token: 0x170041C9 RID: 16841
		// (get) Token: 0x0600E9B3 RID: 59827 RVA: 0x00270789 File Offset: 0x0026E989
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TreasureDungeonAvatar> Parser
		{
			get
			{
				return TreasureDungeonAvatar._parser;
			}
		}

		// Token: 0x170041CA RID: 16842
		// (get) Token: 0x0600E9B4 RID: 59828 RVA: 0x00270790 File Offset: 0x0026E990
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TreasureDungeonAvatarReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170041CB RID: 16843
		// (get) Token: 0x0600E9B5 RID: 59829 RVA: 0x002707A2 File Offset: 0x0026E9A2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TreasureDungeonAvatar.Descriptor;
			}
		}

		// Token: 0x0600E9B6 RID: 59830 RVA: 0x002707A9 File Offset: 0x0026E9A9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TreasureDungeonAvatar()
		{
		}

		// Token: 0x0600E9B7 RID: 59831 RVA: 0x002707B1 File Offset: 0x0026E9B1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TreasureDungeonAvatar(TreasureDungeonAvatar other) : this()
		{
			this.avatarId_ = other.avatarId_;
			this.avatarType_ = other.avatarType_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600E9B8 RID: 59832 RVA: 0x002707E2 File Offset: 0x0026E9E2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TreasureDungeonAvatar Clone()
		{
			return new TreasureDungeonAvatar(this);
		}

		// Token: 0x170041CC RID: 16844
		// (get) Token: 0x0600E9B9 RID: 59833 RVA: 0x002707EA File Offset: 0x0026E9EA
		// (set) Token: 0x0600E9BA RID: 59834 RVA: 0x002707F2 File Offset: 0x0026E9F2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AvatarId
		{
			get
			{
				return this.avatarId_;
			}
			set
			{
				this.avatarId_ = value;
			}
		}

		// Token: 0x170041CD RID: 16845
		// (get) Token: 0x0600E9BB RID: 59835 RVA: 0x002707FB File Offset: 0x0026E9FB
		// (set) Token: 0x0600E9BC RID: 59836 RVA: 0x00270803 File Offset: 0x0026EA03
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AvatarType AvatarType
		{
			get
			{
				return this.avatarType_;
			}
			set
			{
				this.avatarType_ = value;
			}
		}

		// Token: 0x0600E9BD RID: 59837 RVA: 0x0027080C File Offset: 0x0026EA0C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TreasureDungeonAvatar);
		}

		// Token: 0x0600E9BE RID: 59838 RVA: 0x0027081A File Offset: 0x0026EA1A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TreasureDungeonAvatar other)
		{
			return other != null && (other == this || (this.AvatarId == other.AvatarId && this.AvatarType == other.AvatarType && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600E9BF RID: 59839 RVA: 0x00270858 File Offset: 0x0026EA58
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.AvatarId != 0U)
			{
				num ^= this.AvatarId.GetHashCode();
			}
			if (this.AvatarType != AvatarType.None)
			{
				num ^= this.AvatarType.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600E9C0 RID: 59840 RVA: 0x002708B6 File Offset: 0x0026EAB6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600E9C1 RID: 59841 RVA: 0x002708BE File Offset: 0x0026EABE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600E9C2 RID: 59842 RVA: 0x002708C8 File Offset: 0x0026EAC8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.AvatarId != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.AvatarId);
			}
			if (this.AvatarType != AvatarType.None)
			{
				output.WriteRawTag(96);
				output.WriteEnum((int)this.AvatarType);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600E9C3 RID: 59843 RVA: 0x00270924 File Offset: 0x0026EB24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.AvatarId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AvatarId);
			}
			if (this.AvatarType != AvatarType.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.AvatarType);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600E9C4 RID: 59844 RVA: 0x0027097C File Offset: 0x0026EB7C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TreasureDungeonAvatar other)
		{
			if (other == null)
			{
				return;
			}
			if (other.AvatarId != 0U)
			{
				this.AvatarId = other.AvatarId;
			}
			if (other.AvatarType != AvatarType.None)
			{
				this.AvatarType = other.AvatarType;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600E9C5 RID: 59845 RVA: 0x002709CC File Offset: 0x0026EBCC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600E9C6 RID: 59846 RVA: 0x002709D8 File Offset: 0x0026EBD8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 72U)
				{
					if (num != 96U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.AvatarType = (AvatarType)input.ReadEnum();
					}
				}
				else
				{
					this.AvatarId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04005C59 RID: 23641
		private static readonly MessageParser<TreasureDungeonAvatar> _parser = new MessageParser<TreasureDungeonAvatar>(() => new TreasureDungeonAvatar());

		// Token: 0x04005C5A RID: 23642
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005C5B RID: 23643
		public const int AvatarIdFieldNumber = 9;

		// Token: 0x04005C5C RID: 23644
		private uint avatarId_;

		// Token: 0x04005C5D RID: 23645
		public const int AvatarTypeFieldNumber = 12;

		// Token: 0x04005C5E RID: 23646
		private AvatarType avatarType_;
	}
}
